package cn.jy.boot.mapper;

import cn.jy.boot.pojo.Role;
import cn.jy.boot.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {

    User selectUserByUserName(String username);

    List<Role> selectRolesByUserId(Integer id);

    //跟新用户密码
    Integer updatePassword(@Param("username") String username,@Param("password") String password);

}
